{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/header.html"}

<section class="wrap">
    <!--content stop-->
    <section class="login">
        <ul>
            <form method="post" target="_self" id="myForm" name="myForm"  action="/findpasswd/updatepasswd">
                <input type="hidden" name="codetime" value="{$codetime}">
                <input type="hidden" name="moblie" value="{$moblie}">
                <li><input class="login-text" type="password" value="" name="password" placeholder="请输入密码"/>
                    <span class="passwordmsg"></span>
                </li>
                <li><input class="login-text" type="password" value="" name="repassword" placeholder="请确认密码"/>
                    <span class="repasswordmsg"></span>
                </li>
                <li><input class="login-btn" type="button"  value="提交完成"/></li>
            </form>
        </ul>
    </section>

    <!--content end-->
    {include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/common/footerlogin.html"}

</section>
{literal}
<script type="text/javascript">

    $(function(){
        $('.smxy').click(function(){
            $('.popup_smxy_bg').show();
            $('.popup_smxy').show();
        });

        $('.close_smxy').click(function(){
            $('.popup_smxy_bg').hide();
            $('.popup_smxy').hide();
        });
    });


    $(function(){
        var password = $("input[name=password]")
        var repassword =   $("input[name=repassword]");

        //下一步注册
        $('.login-btn').click(function(){
            if(codeEmpty(password,repassword) === false){
                return false;
            }else{
                document.myForm.submit();
            }
        });
    });


    function codeEmpty(password,repassword){
        var password = password.val();
        var repassword = repassword.val();
        if(password=='') {
            $('.passwordmsg').html("请输入密码！");
            return false;
        }else if(password !=repassword){
            $('.repasswordmsg').html("两次密码输入不一致！");
            return false;
        }else{
            $('.passwordmsg').html("");
            $('.repasswordmsg').html("");
            return true;
        }

    }
</script>
{/literal}
<div class="popup_smxy_bg"></div>

{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/footer.html"}

